<template>
  <view class="nav">
    <u-notice-bar :text="text1"></u-notice-bar>
  </view>
</template>

<script>
  export default {
    name:"Top-Notice",
    data() {
      return {
        text1: '欢迎使用无忧社区，祝你生活愉快'
      };
    }
  }
</script>

<style lang="scss">
.nav{
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
}
</style>